import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const AdminInfoKey = 'Admin-Info'

//TOKEN
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

//管理员信息
export function getAdminInfoCookie() {
  return Cookies.get(AdminInfoKey)
}

export function setAdminInfoCookie(info) {
  return Cookies.set(AdminInfoKey, info)
}

export function removeAdminInfoCookie() {
  return Cookies.remove(AdminInfoKey)
}
